<div class="coupon-box">
  <h4><em class="ico"></em>{if $status == 1}未使用{elseif $status == 3}已使用{elseif $status == 4}已过期{/if}</h4>
  {if $list}
    <ul class="clearfix">
      {foreach $list as $k=>$v}
      <li>
        <div class="cup {if $status < 3}{if $v.offer_price >= 100}cup-bg2{elseif $v.offer_price >= 50}cup-bg{/if}{else}{if $v.offer_price < 50}cup-bg3{else}cup-bg4{/if}{/if}">
          <div class="cup-money"><em>￥</em>{$v.offer_price}</div>
          <p class="txtright">{if $v.category_id}仅限{category_helper::get_category_title($v.category_id)}类商品{else}　{/if}</p>
          <div>使用条件：{if $v.limit_price}满{number_format($v.limit_price)}{else}全场通用{/if}</div>
          <div>有效时间：{substr($v.start_time, 0, 10)} 至 {substr($v.end_time, 0, 10)}</div>
        </div>
      </li>
      {/foreach}
    </ul>
  {else}
    <div class="coupon-no">未找到相应优惠券。</div>
  {/if}
  <div class="coupon-txt clearfix">
    <div><a href="{$smarty.const.BBS_URL}">NBD社区</a>　|　<a href="javascript:void(0);">新浪微博</a></div>
    <p class="txtright">参加NBD社区活动,微博、微信活动即有机会赢优惠券哦~</p>
  </div>
</div>
<!--coupon-box  end-->